package com.lin.server;

import com.lin.dataobject.PriceType;
import com.lin.dataobject.ProductUnit;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by MYQ on 2017/10/28.
 */
public interface ProductUnitService {
    ProductUnit findOne(Integer id);

    List<ProductUnit> findAll(String name, String startTime, String endTime);
    Page<ProductUnit> findAll(String name, String startTime, String endTime, Pageable pageable);


    ProductUnit save(ProductUnit productUnit);

    void del(ProductUnit productUnit);

    Long getSize(String name, String startTime, String endTime);
}
